function factorial(n){
    try{
        let result=1;
        while(n){ result*=n--;}
        return BigInt(result).toString();
    }catch(e){
        return "无穷大";
    }
}

self.onmessage=({data})=>{
    self.postMessage(`${data}!=${factorial(data)}`);
}